<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>LibQQt: R:/Develop/a0-develop/LibQQt/src/exquisite/qrcode/qrdecode/zxing/zxing/qrcode/encoder/MaskUtil.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="logo.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">LibQQt
   &#160;<span id="projectnumber">v3.1</span>
   </div>
   <div id="projectbrief">开源、跨平台Qt应用程序框架中间件</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_14bafaf81b4d5a7e53bf81c33f47f3f2.html">exquisite</a></li><li class="navelem"><a class="el" href="dir_4653d68db7f6be9ae8b828dd23d15f2b.html">qrcode</a></li><li class="navelem"><a class="el" href="dir_5b6dac9498515492da15d3ccc64e1528.html">qrdecode</a></li><li class="navelem"><a class="el" href="dir_01f5014cb6e69ac7af2227b1cb590c8a.html">zxing</a></li><li class="navelem"><a class="el" href="dir_84d83001f5d0bc120856a6dae4ca7cbc.html">zxing</a></li><li class="navelem"><a class="el" href="dir_1e2d7ffb73ad3b5c555982ead27a1649.html">qrcode</a></li><li class="navelem"><a class="el" href="dir_e1e301b8201380511a0eece0364903a1.html">encoder</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">MaskUtil.h</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="preprocessor">#ifndef MASKUTIL_H</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="preprocessor">#define MASKUTIL_H</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;</div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="preprocessor">#include &quot;ByteMatrix.h&quot;</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="preprocessor">#include &lt;vector&gt;</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;</div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespacezxing.html">zxing</a> {</div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="keyword">namespace </span>qrcode {</div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;</div><div class="line"><a name="l00010"></a><span class="lineno"><a class="line" href="classzxing_1_1qrcode_1_1_mask_util.html">   10</a></span>&#160;<span class="keyword">class </span><a class="code" href="classzxing_1_1qrcode_1_1_mask_util.html">MaskUtil</a> {</div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;</div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="keyword">private</span>:</div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;  <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">int</span> N1;</div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;  <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">int</span> N2;</div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;  <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">int</span> N3;</div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;  <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">int</span> N4;</div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;</div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;  <span class="keyword">static</span> <span class="keywordtype">bool</span> isWhiteHorizontal(<span class="keyword">const</span> std::vector&lt;byte&gt;&amp; rowArray, <span class="keywordtype">int</span> from, <span class="keywordtype">int</span> to);</div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;</div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;  <span class="keyword">static</span> <span class="keywordtype">bool</span> isWhiteVertical(<span class="keyword">const</span> std::vector&lt;std::vector&lt;byte&gt; &gt;&amp; array, <span class="keywordtype">int</span> col, <span class="keywordtype">int</span> from, <span class="keywordtype">int</span> to);</div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;</div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;  <span class="keyword">static</span> <span class="keywordtype">int</span> applyMaskPenaltyRule1Internal(<span class="keyword">const</span> <a class="code" href="classzxing_1_1qrcode_1_1_byte_matrix.html">ByteMatrix</a>&amp; matrix, <span class="keywordtype">bool</span> isHorizontal);</div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;</div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;  <span class="keyword">static</span> <span class="keywordtype">int</span> <a class="code" href="classzxing_1_1qrcode_1_1_mask_util.html#aa32c3dfbd0236dc68ef280855a98a6b8">applyMaskPenaltyRule1</a>(<span class="keyword">const</span> <a class="code" href="classzxing_1_1qrcode_1_1_byte_matrix.html">ByteMatrix</a>&amp; matrix);</div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;</div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;  <span class="keyword">static</span> <span class="keywordtype">int</span> <a class="code" href="classzxing_1_1qrcode_1_1_mask_util.html#ae3fc0a63e7e43c0400cace1f98770d7c">applyMaskPenaltyRule2</a>(<span class="keyword">const</span> <a class="code" href="classzxing_1_1qrcode_1_1_byte_matrix.html">ByteMatrix</a>&amp; matrix);</div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;</div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;  <span class="keyword">static</span> <span class="keywordtype">int</span> <a class="code" href="classzxing_1_1qrcode_1_1_mask_util.html#abc9c4ac729e26f9d61d8c1ed856477cf">applyMaskPenaltyRule3</a>(<span class="keyword">const</span> <a class="code" href="classzxing_1_1qrcode_1_1_byte_matrix.html">ByteMatrix</a>&amp; matrix);</div><div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;</div><div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;  <span class="keyword">static</span> <span class="keywordtype">int</span> <a class="code" href="classzxing_1_1qrcode_1_1_mask_util.html#a2224bed0a422e85b78c508983ae9db4c">applyMaskPenaltyRule4</a>(<span class="keyword">const</span> <a class="code" href="classzxing_1_1qrcode_1_1_byte_matrix.html">ByteMatrix</a>&amp; matrix);</div><div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;</div><div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;  <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="classzxing_1_1qrcode_1_1_mask_util.html#ab094f1548f9bbb715c7227893da58009">getDataMaskBit</a>(<span class="keywordtype">int</span> maskPattern, <span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y);</div><div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;};</div><div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;</div><div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;}</div><div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;}</div><div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;</div><div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;<span class="preprocessor">#endif // MASKUTIL_H</span></div><div class="ttc" id="classzxing_1_1qrcode_1_1_mask_util_html"><div class="ttname"><a href="classzxing_1_1qrcode_1_1_mask_util.html">zxing::qrcode::MaskUtil</a></div><div class="ttdef"><b>Definition:</b> MaskUtil.h:10</div></div>
<div class="ttc" id="classzxing_1_1qrcode_1_1_mask_util_html_ae3fc0a63e7e43c0400cace1f98770d7c"><div class="ttname"><a href="classzxing_1_1qrcode_1_1_mask_util.html#ae3fc0a63e7e43c0400cace1f98770d7c">zxing::qrcode::MaskUtil::applyMaskPenaltyRule2</a></div><div class="ttdeci">static int applyMaskPenaltyRule2(const ByteMatrix &amp;matrix)</div><div class="ttdef"><b>Definition:</b> MaskUtil.cpp:29</div></div>
<div class="ttc" id="classzxing_1_1qrcode_1_1_byte_matrix_html"><div class="ttname"><a href="classzxing_1_1qrcode_1_1_byte_matrix.html">zxing::qrcode::ByteMatrix</a></div><div class="ttdef"><b>Definition:</b> ByteMatrix.h:12</div></div>
<div class="ttc" id="namespacezxing_html"><div class="ttname"><a href="namespacezxing.html">zxing</a></div><div class="ttdef"><b>Definition:</b> QZXing.h:29</div></div>
<div class="ttc" id="classzxing_1_1qrcode_1_1_mask_util_html_abc9c4ac729e26f9d61d8c1ed856477cf"><div class="ttname"><a href="classzxing_1_1qrcode_1_1_mask_util.html#abc9c4ac729e26f9d61d8c1ed856477cf">zxing::qrcode::MaskUtil::applyMaskPenaltyRule3</a></div><div class="ttdeci">static int applyMaskPenaltyRule3(const ByteMatrix &amp;matrix)</div><div class="ttdef"><b>Definition:</b> MaskUtil.cpp:52</div></div>
<div class="ttc" id="classzxing_1_1qrcode_1_1_mask_util_html_aa32c3dfbd0236dc68ef280855a98a6b8"><div class="ttname"><a href="classzxing_1_1qrcode_1_1_mask_util.html#aa32c3dfbd0236dc68ef280855a98a6b8">zxing::qrcode::MaskUtil::applyMaskPenaltyRule1</a></div><div class="ttdeci">static int applyMaskPenaltyRule1(const ByteMatrix &amp;matrix)</div><div class="ttdef"><b>Definition:</b> MaskUtil.cpp:19</div></div>
<div class="ttc" id="classzxing_1_1qrcode_1_1_mask_util_html_ab094f1548f9bbb715c7227893da58009"><div class="ttname"><a href="classzxing_1_1qrcode_1_1_mask_util.html#ab094f1548f9bbb715c7227893da58009">zxing::qrcode::MaskUtil::getDataMaskBit</a></div><div class="ttdeci">static bool getDataMaskBit(int maskPattern, int x, int y)</div><div class="ttdef"><b>Definition:</b> MaskUtil.cpp:139</div></div>
<div class="ttc" id="classzxing_1_1qrcode_1_1_mask_util_html_a2224bed0a422e85b78c508983ae9db4c"><div class="ttname"><a href="classzxing_1_1qrcode_1_1_mask_util.html#a2224bed0a422e85b78c508983ae9db4c">zxing::qrcode::MaskUtil::applyMaskPenaltyRule4</a></div><div class="ttdeci">static int applyMaskPenaltyRule4(const ByteMatrix &amp;matrix)</div><div class="ttdef"><b>Definition:</b> MaskUtil.cpp:116</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>
